package com.cm.domian;

import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @author chenming
 * @description
 * @create: 2022-11-17
 */
public class ValidationTest {

    private String name;

    private Long age;

    @NotNull(message = "名字不能为空")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }
}
